package org.tinygroup.cepcorebase.filter;

import org.tinygroup.cepcore.CEPCoreProcessFilter;

public abstract class AbstractCEPCoreProcessFilter implements CEPCoreProcessFilter{
	private CEPCoreProcessFilter nextFilter;
	
	public void setNext(CEPCoreProcessFilter filter) {
		this.nextFilter = filter;
	}
	
	public CEPCoreProcessFilter getNext(){
		return nextFilter;
	}
	
	public String getId(){
		return getClass().getName();
	}
	
	public int compareTo(CEPCoreProcessFilter o) {
		if(o==null){
			return -1;
		}
		return getId().compareTo(o.getId());
	}
}
